<div class = "pa contextMenuContainer">
    <div class = "ui dropdown contextMenu">
        <div class = "text" ng-show = "false;"></div>
        <i class = "dropdown icon" ng-show = "false;"></i>
        <div class = "menu">
            <div ng-class = "{item:true,active:submenu1.selected ? submenu1.selected():false,selected:submenu1.selected ? submenu1.selected():false}" ng-repeat = "submenu1 in menus" ng-hide = "submenu1.hide && submenu1.hide()" ng-click = "submenu1.fn && submenu1.fn(menu.type,menu.config.columnId)">
                <i class = "{{submenu1.icon}}" ng-show = "!!submenu1.icon"></i>
                <i class = "dropdown icon" ng-if = "submenu1.submenus.length"></i>
                <span ng-bind = "submenu1.namefn ? submenu1.namefn() : submenu1.name"></span>

                <div class = "menu" ng-if = "submenu1.submenus.length">
                    <div ng-class = "{item:true,active:submenu2.selected ? submenu2.selected():false,selected:submenu2.selected ? submenu2.selected():false}" ng-repeat = "submenu2 in submenu1.submenus" ng-hide = "submenu2.hide && submenu2.hide()" ng-click = "submenu2.fn && submenu2.fn(menu.type,menu.config.columnId)">
                        <i class = "{{submenu2.icon}}" ng-show = "!!submenu2.icon"></i>
                        <i class = "dropdown icon" ng-if = "submenu2.submenus.length"></i>
                        <span ng-bind = "submenu2.namefn ? submenu2.namefn() : submenu2.name"></span>

                        <div class = "menu" ng-if = "submenu2.submenus.length">
                            <div ng-class = "{item:true,active:submenu3.selected ? submenu3.selected():false,selected:submenu3.selected ? submenu3.selected():false}" ng-repeat = "submenu3 in submenu2.submenus" ng-hide = "submenu3.hide && submenu3.hide()" ng-click = "submenu3.fn && submenu3.fn(menu.type,menu.config.columnId)">
                                <i class = "{{submenu3.icon}}" ng-show = "!!submenu3.icon"></i>
                                <span ng-bind = "submenu3.namefn ? submenu3.namefn() : submenu3.name"></span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>